package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Attend;
import cn.wolfcode.trip.base.mapper.AttendMapper;
import cn.wolfcode.trip.base.service.IAttendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AttendServiceImpl implements IAttendService {
    @Autowired
    private AttendMapper attendMapper;
    @Override
    public void save(Attend attend) {
        attendMapper.insert(attend);

    }

    @Override
    public List<Attend> selectAttendById(Long togetherId) {
        return attendMapper.selectAttendById(togetherId);
    }
}
